<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<button id="btn">嗲你</button>
		<script src="js/jquery-1.11.0.js"></script>
		<script>
			$("#btn").click(function(){
				$.ajax({
					type:"psot",
					url:'index.php',
					error: function() {
						alert ("ajax请求失败");
					},
					success: function(data) {
						console.log(data);
					}							
				});
			})
		</script>
	</body>
</html>
